<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import = "com.project.model.Food"%>
<%@ page import = "com.project.control.FoodControl"%>
<head>
<link href="../../../resources/css/admin/pages_member.css" rel="stylesheet" type="text/css"/>
</head>

<body>
<%
	response.setCharacterEncoding("utf-8");
	int objectId = Integer.parseInt(request.getParameter("id"));
	System.out.println(objectId);
    FoodControl hc= new FoodControl();
  	Food food = hc.getOneFoodById(objectId);
	hc.getClicks(objectId);
%>
<p>标题：<%out.print(food.getTitle());%></p>
<p>作者：<%out.print(food.getEditor());%></p>
<p>转贴来自：<%out.print(food.getOriginal()); %></p>
<p>点击次数：<%out.print(food.getClicks());%></p>
<p>文章类型：<%out.print(food.getType());%></p>
<p>发布时间：<%out.print(food.getAddtime());%></p>
<p>内容：
	<%
		out.print(food.getContent());
	%>
</p>
 <input type="button" value="返回动态列表" onClick="window.location.href='food.jsp'">

</body>